//
//  FreeManagerSelfTwoTableViewCell.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/8.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "FreeManagerSelfTwoTableViewCell.h"

@implementation FreeManagerSelfTwoTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.backgroundColor = [UIColor clearColor];
        GLGWView *baView = [[GLGWView alloc] initWithInSuperView:self.contentView];
        [baView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(@(kWidthProportion_In_iPhoneTriploid(15)));
            make.right.equalTo(@(-kWidthProportion_In_iPhoneTriploid(15)));
            make.top.bottom.equalTo(self.contentView);
        }];
        baView.backgroundColor = [UIColor colorWithHexString:@"#A89A60"];
        baView.layer.cornerRadius = 12;
        GLGWImageView *imgV = [[GLGWImageView alloc] initInSuperView:baView];
        [imgV mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.right.bottom.equalTo(baView);
        }];
        imgV.image = [UIImage imageNamed:@"bg_tongzhibeijing"];
        
        GLGWLabel *nameLab = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(12) theColor:[UIColor colorWithHexString:@"#FFFFFF"] inSuperView:baView];
        NSString *str = @"恭喜 张** 成交120000吨螺纹钢，获得 200元 收益";
        nameLab.text = str;
        [nameLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(baView.mas_left).offset(kWidthProportion_In_iPhoneTriploid(35));
            make.right.equalTo(baView.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(35));
            make.top.equalTo(baView.mas_top).offset(kWidthProportion_In_iPhoneTriploid(19));
            make.bottom.equalTo(baView.mas_bottom).offset(-kHeightProportion_In_iPhoneTriploid(19));
        }];
        nameLab.numberOfLines = 0;
    }
    return self;
}


@end
